package com.mycom.core1;

import java.io.*;
import java.util.Properties;

/**
 * tcp服务端启动类
 * @author xp
 *         Created on 2018/2/26
 */
public class AppInit {
    public static Properties config = new Properties();

    public static void main(String[] args) throws IOException, InterruptedException {
        InputStream in = new BufferedInputStream(new FileInputStream("conf/conf.properties"));
        config.load(in);

        new ConfigInit().start();
        new TcpServer().start();
    }

}
